import Base from 'models/base';

import SystemUtil from 'utils/systemUtil';

const colorList = ['#59c264', '#fd9213', '#3da5fc', '#fc3df5', '#11b7a5'];

export default class CircleTheme extends Base {
  constructor(obj, index) {
    super();

    this.id = SystemUtil.getId();
    this.text = obj.theme;
    this.count = obj.themeCount;
    this.color = colorList[index % colorList.length];
  }
}
